<?php
require "../gobal.php";


    $where="";
	$sql="select * from customer_detail $where order by id desc";
    $rows=fetch_rows($sql);
	$data=json_encode($rows);



?>

<table class="easyui-datagrid" data-options='fit:true,pagination:true,rownumbers:false,fitColumns:true
											 ,data:<?php echo $data; ?>
											 '>
    <thead>
        <tr>
			<th data-options="field:'id'">id</th>
            <th data-options="field:'wxmp_nickname'">昵称</th>
			<th data-options="field:'wxmp_openid'">openid</th>
            <th data-options="field:'wxmp_sex'">性别</th>
			<th data-options="field:'wxmp_country'">国家</th>
            <th data-options="field:'wxmp_province'">省份</th>
			<th data-options="field:'wxmp_city'">城市</th>
			<th data-options="field:'last_login_at'">最后登录时间</th>
        </tr>
    </thead>

</table>